package com.jddup.common.pojo.vo;

import com.jddup.common.pojo.EntityAndDbDifference;

/**
 * Created by ZZB on 2017/12/18.
 */
public class ColumnDiffIndexVO {
    private String propertyName;
    private String propertyType;
    private String recommendColumnType;
    private String columnName;
    private String columnType;
    private boolean diff;
    private int level; //1 success 2 warn 3 error
    private EntityAndDbDifference.ModifyDDL modifyDDL;

    public void setDiff(boolean diff) {
        this.diff = diff;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public EntityAndDbDifference.ModifyDDL getModifyDDL() {
        return modifyDDL;
    }

    public void setModifyDDL(EntityAndDbDifference.ModifyDDL modifyDDL) {
        this.modifyDDL = modifyDDL;
    }

    public boolean isDiff() {
        return modifyDDL != null;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public String getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(String propertyType) {
        this.propertyType = propertyType;
    }

    public String getRecommendColumnType() {
        return recommendColumnType;
    }

    public void setRecommendColumnType(String recommendColumnType) {
        this.recommendColumnType = recommendColumnType;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }
}
